<%@ Page Language="C#" MasterPageFile="~/Shared/Default.master" AutoEventWireup="true" CodeBehind="PopupEditor.aspx.cs" Inherits="WebApplication.ContactManager.PopupEditor" Title="Untitled Page" %>
<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" Namespace="System.Web.UI" TagPrefix="asp" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<%@ Register Src="ContactDetails.ascx" TagName="ContactDetails" TagPrefix="uc1" %>
<%@ Register TagPrefix="contacts" TagName="ContactList" Src="~/ContactManager/ContactList.ascx" %>    
<asp:Content ID="Content1" ContentPlaceHolderID="DefaultContent" runat="server">
        <asp:ScriptManager ID="ApplicationScriptManager" runat="server">
        </asp:ScriptManager>

    <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Always">
	<ContentTemplate>
		<h1>Your current contacts</h1>
			<contacts:ContactList ID="contactList" runat="server" />
		<br />

		<asp:Label ID="DummyPopupTarget" runat="server" /> <%--Dummy control because the popup extender TargetControlID cannot be null --%>
		<br />
		
		<asp:Panel ID="ContactDetailsPanel" runat="server" Width="570px" BorderStyle="Outset" BackColor="white">
			<uc1:ContactDetails ID="ContactDetails" runat="server" />
		</asp:Panel>
		<ajaxToolkit:ModalPopupExtender ID="DetailsPopUp" runat="server"
			TargetControlID="DummyPopupTarget"
			PopupControlID="ContactDetailsPanel"
			BackgroundCssClass="modalBackground" />
	</ContentTemplate>			
    </asp:UpdatePanel>
</asp:Content>
